package com.jdzy.model.student.pojos;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jdzy.model.common.pojos.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;

@Data
@ApiModel(description = "copyright著作权(包括软著和专利)")
@TableName("copyright")
public class Copyright extends BaseEntity {

    @ApiModelProperty(value = "学号stuId")
    @TableField(value = "stu_id")
    private String stuId;

    @ApiModelProperty(value = "名称")
    @TableField(value = "copyright_name")
    private String copyrightName;

    @ApiModelProperty(value = "状态")
    @TableField(value = "copyright_status")
    private Byte copyrightStatus;

    @ApiModelProperty(value = "注册号码")
    @TableField(value = "registration_number")
    private String registrationNumber;

    @ApiModelProperty(value = "有限期限")
    @TableField(value = "expiration_time")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT-8")
    private LocalDate expirationTime;

    @ApiModelProperty(value = "创建著作权时间")
    @TableField(value = "create_copyright_time")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT-8")
    private LocalDate createCopyrightTime;
}
